<?php
ini_set("memory_limit","600M");
set_time_limit(10000) ;
 error_reporting(E_ALL);
 ini_set("display_errors", 1);
include "includes/comunes.php";
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$sql="select * from Movimientos";

$resloc=  cons_ins($sql);

while ($regcli=mysql_fetch_array($resloc)){

    if($reg['Credito']<>""){
    $sqlup="UPDATE Movimientos
    SET [Financiera] = ".obtener_id_financiera($reg['Credito'])."
    WHERE Id=".$reg['Id'];
    echo $sqlup."</br>";
    $resloc1=  cons_ins($sqlup);
    }

  }
?>